package com.testfileupload.uploadimg.design.simplefactory.chan.nvwa;

/**
 * 工厂方法模式
 */
public class NvWa {
    public static void main(String[] args) {
        AbstractHumanFactory humanFactory = new HumanFactory();
        BlackHuman human = humanFactory.createHuman(BlackHuman.class);
        human.getColor();
        human.talk();
    }
}
